﻿@model VehicleManagement.Models.DriverInfo
@{
    ViewBag.Title = "Create";
}
<h2></h2>
<link rel="stylesheet" href="@Url.Content("~/Content/css/page_zlb_c_e_d.css")" type="text/css"/>
<link rel="stylesheet" href="@Url.Content("~/Content/themes/base/jquery.ui.all.css")" type="text/css"/>
   
@Html.Partial("_PartviewDrivermanageNav")
<div class="content bc">
    <div class="content_link_warn f12">
        你当前的位置：司机管理&gt&gt &nbsp;&nbsp;添加司机&gt&gt &nbsp;&nbsp;司机添加
    </div>
    <div class="content_right fr" id="rightcontent">
        @using (Html.BeginForm("Create", "Driver", FormMethod.Post, new { enctype = "multipart/form-data" }))
        {
            @Html.ValidationSummary(true)
            <fieldset>
                @*<legend></legend>*@
                <div class="OutTitle">
                    <span>司机信息录入</span></div>
                <div class="Box">
                    <div class="SubBox1 mt5 ml15 mr15">
                        <div class="SubTitle">
                            司机基本信息</div>
                        <div class="SubBox-container">
                            <div class="pic-wrap">
                                <div class="box-img-wrap">
                                    <img src="../../Content/themes/picture/defaultHeadImage.png" />
                                </div>
                                <div class="a-wrap">
                                    <input type="file" name="file" />
                                </div>
                            </div>
                            <div class="text-wrap w593 ml20 mb5 mr5">
                                <div class="text-line">
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.DriverNumber):</span>
                                        @Html.EditorFor(model => model.DriverNumber)
                                        <div class="validate validate4">
                                            @Html.ValidationMessageFor(model => model.DriverNumber)
                                        </div>
                                    </div>
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.DriverName):</span>
                                        @Html.EditorFor(model => model.DriverName)
                                        <div class="validate validate4">
                                            @Html.ValidationMessageFor(model => model.DriverName)
                                        </div>
                                    </div>
                                    <div class="withValidate wage">
                                        <span id="ageinDriverC">@Html.LabelFor(model => model.Age):</span>
                                        @Html.DropDownListFor(model => model.Age, new SelectList(new[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30",
                                       "31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","56","60",
                                       "61","62","63","64","65","66","67","68","69","70","71", "72","73","74","75","76","77","78","79","80","81","82","83","84","84","85","86","87","88","89","90", "91","92","93","94","95","96","97","98","99","100"}), "18")
                                        @*<div class="validate validate2">
                                            @Html.ValidationMessageFor(model => model.Age)
                                        </div>*@
                                    </div>
                                   
                                    
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="text-line">
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.Email):</span>
                                        @Html.EditorFor(model => model.Email)
                                        <div class="validate validate4">
                                            @Html.ValidationMessageFor(model => model.Email)
                                        </div>
                                    </div>
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.Telephone):</span>
                                        @Html.EditorFor(model => model.Telephone)
                                        <div class="validate validate4">
                                            @Html.ValidationMessageFor(model => model.Telephone)
                                        </div>
                                    </div>
                                     <div class="withValidate">
                                        <span@* id="sexinDriverC"*@>@Html.LabelFor(model => model.Sex):</span>
                                        @Html.DropDownListFor(model => model.Sex, new SelectList(new[] { "男", "女" }, "男"))
                                        <div class="validate validate2">
                                            @Html.ValidationMessageFor(model => model.Sex)
                                        </div>
                                    </div>
                                    
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="text-line">
                                    <div class="withValidate wpx500">
                                        <span>@Html.LabelFor(model => model.FamilyAddress):</span>
                                        @Html.EditorFor(model => model.FamilyAddress)
                                        <div class="special-validate">
                                            @Html.ValidationMessageFor(model => model.FamilyAddress)
                                        </div>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="text-line">
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.Question):</span>
                                        @Html.DropDownListFor(model => model.Question,
                                        new SelectList(new[] { "父母的名字", "读过的学校" }, "父母的名字"))
                                        <span>@Html.LabelFor(model => model.Answer):</span>
                                        @Html.EditorFor(model => model.Answer)
                                        <div class="special-validate3">@Html.ValidationMessageFor(model => model.Answer)</div>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                    </div>
                    <div class="SubBox2 m15 mt10 mb5">
                        <div class="SubTitle">
                            司机驾驶信息</div>
                        <div class="SubBox-container">
                            <div class="text-wrap ml5 mb5 mr5">
                                <div class="text-line">
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.DriverLinceId):</span>
                                        @Html.EditorFor(model => model.DriverLinceId)
                                        <div class="validate validate4">
                                            @Html.ValidationMessageFor(model => model.DriverLinceId)
                                        </div>
                                    </div>
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.LinceID):</span>
                                        @Html.EditorFor(model => model.LinceID)
                                        <div class="validate validate5">
                                            @Html.ValidationMessageFor(model => model.LinceID)
                                        </div>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="text-line">
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.LincecheckTime):</span>
                                        @Html.EditorFor(model => model.LincecheckTime)
                                        <div class="validate validate5">
                                            @Html.ValidationMessageFor(model => model.LincecheckTime)
                                        </div>
                                    </div>
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.LinceType):</span>
                                        @Html.DropDownListFor(model => model.LinceType, new SelectList(new[] { "A1", "A2", "A3", "B1", "B2", "C1", "C2", "C3", "C4", "D", "E", "F" }, "C1"))
                                        <div class="validate validate_linceType">
                                            @Html.ValidationMessageFor(model => model.LinceType)
                                        </div>
                                    </div>
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.LinceStart):</span>
                                        @Html.EditorFor(model => model.LinceStart)
                                        <div class="validate validate4">
                                            @Html.ValidationMessageFor(model => model.LinceStart)
                                        </div>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="text-line">
                                    <span class="spanType1">@Html.LabelFor(model => model.Remark):</span>
                                    @Html.TextAreaFor(model => model.Remark)
                                </div>
                            </div>
                        </div>
                        <div class="editor-label hide">
                            @Html.LabelFor(model => model.DriverID)
                        </div>
                    </div>
                </div>
                <div class="button-wrap">
                    <div class="submit-wrap">
                        <div class="divINsubmit">
                            <input class="submit" type="submit" value="创建" /></div>
                    </div>
                    <div class="a-back mr15">
                        <div class="divINa-back">@Html.ActionLink("返回", "Index")</div>
                    </div>
                </div>
            </fieldset>
        }
    </div>
    @Html.Partial("_PartviewDriverLeftbar")
    <div class="content_contract fl">
        <a href="javascript:void(0)" class="btn_contract w8h32" id="contract" title="收缩">
        </a><a href="javascript:void(0)" class="btn_expand w8h32" id="expand" title="展开">
        </a>
    </div>
    <div class="cb">
    </div>
</div>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
	document.getElementById("LincecheckTime").setAttribute("readOnly", "true");
        document.getElementById("LinceStart").setAttribute("readOnly", "true");
        $.datepicker.regional['zh-CN'] =
        {
            clearText: '清除', clearStatus: '清除已选日期',
            closeText: '关闭', closeStatus: '不改变当前选择',
            prevText: '', prevStatus: '显示上月',
            nextText: '', nextStatus: '显示下月',
            currentText: '今天', currentStatus: '显示本月',
            monthNames: ['一月', '二月', '三月', '四月', '五月', '六月',
        '七月', '八月', '九月', '十月', '十一月', '十二月'],
            monthNamesShort: ['一', '二', '三', '四', '五', '六',
        '七', '八', '九', '十', '十一', '十二'],
            monthStatus: '选择月份', yearStatus: '选择年份',
            weekHeader: '周', weekStatus: '年内周次',
            dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
            dayNamesShort: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
            dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'],
            dayStatus: '设置 DD 为一周起始', dateStatus: '选择 m月 d日, DD',
            dateFormat: 'yy-mm-dd', firstDay: 1,
            initStatus: '请选择日期', isRTL: false
        };
        $.datepicker.setDefaults($.datepicker.regional['zh-CN']);
        $("#LincecheckTime,#LinceStart").datepicker({
            showOn: "button",
            buttonImage: "/Content/themes/picture/calendar.gif",
            buttonImageOnly: true
        });
    });

   
</script>
